package com.ucar.train.service;

import com.ucar.train.dto.CarDTO;
import com.ucar.train.dto.StoreCarMappingDTO;
import com.ucar.train.vo.CarVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CarService {
    /**
     * @Description 根据门店id查到门店里的车
     * @author helingang
     * @param  storeId
     * @createDate 2019/8/14
     **/
    List<CarDTO>selectCarByStoreId(String storeId);

    /**
     * @Description 根据调度情况修改车辆的门店id
     * @author Helingang
     * @param  carIdList，storeId
     * @createDate 2019/8/14
     **/
    Integer updateCarOfStoreIdAfterSchedul(List<String> carIdList, String storeId);

    StoreCarMappingDTO selectByCarId(String  carId);

    int updateByPrimaryKeySelective(StoreCarMappingDTO record);

    /**
     * 功能描述: <br>
     * 〈通过carID查询车辆信息〉
     * @Param: [carID]
     * @Return: com.ucar.train.dto.CarDTO
     * @Author: XuMingZhi
     * @Date: 2019/8/19 12:47
     */
    CarDTO selectCarDTOByCarId(String carID);

    int updateByCarId(  CarVO carVO);

    int updateScheduleCar(String carId,String  storeId);

    List<CarDTO>selectAllCar();

}
